<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a4j="http://richfaces.org/a4j"
    template="layout/templateLogin.xhtml">

<ui:define name="body">
    <h:form id="loginForm">
        <rich:panel>
            <f:facet name="header">
            	<h:outputText value="#{resourceApp.login_centroAcceso}"/>
            </f:facet>
            <div class="dialog">
	            <h:graphicImage value="/imagenes/logoASNETLogin.jpg"/>
            </div>
            <div class="dialog">
	           	<b><h:outputLabel value="#{resourceApp.login_ingreseDatos}"/></b>
	        </div>
            <div class="dialog">
                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
                	<h:outputLabel for="loginId" value="* #{resourceApp.login_user}"/>
					<h:inputText id="loginId" value="#{loginBean.amusr.auslog}" required="true"/>
                    <h:outputLabel for="claveId" value="* #{resourceApp.login_password}" />
					<h:inputSecret id="claveId" value="#{loginBean.amusr.auspas}" required="true"/>
                </h:panelGrid>
            </div>
            <div class="dialog">
           		 <h:messages id="messages" styleClass="message" errorClass="errors" infoClass="infomsg" warnClass="warnmsg"/>
            </div>
            
            <div class="dialog">
				<a4j:commandButton id="loginButtonId"
					action="#{loginBean.login}"
					value="#{resourceApp.login_ingresar}" type="submit" reRender="loginForm"
					style="FONT-WEIGHT: bold; width : 107px; height : 20px;">
				</a4j:commandButton>
   	    		<rich:spacer/><rich:spacer/><rich:spacer/>
       	    	<h:commandButton id="cancelButtonId" value="#{resourceApp.btn_limpiar}" type="reset"/>
	       </div>
        </rich:panel>
    </h:form>
 </ui:define>
</ui:composition>